Universal Access To All Knowledge
Home donate | Forums | FAQs | Contributions | Terms, Privacy, & Copyright | Contact | Volunteer Positions | Jobs | Bios
Search: Advanced Search
Anonymous User (login or join us)
Upload

Reply to this post | See parent post | Go Back
View Post [edit]

Poster: Administrator, Curator, or Staff Jonathan Aizen Date: March 11, 2004 02:44:30am
Forum: etree Subject: Re: Format of text file for best import

The parser is written in PHP using Perl regular expressions.

The regular expression for the location field is: /(.*\, {0,1}[A-Za-z]{1,}.*)/

For the source field it is: /source: *(.*)/i

For the lineage field it is: /lineage: *(.*)/i or /transfer: (.*)/i

For the taper it is: /taped by: *(.*)/i

For the transferer it is: /transfered by: *(.*)/i or /conversion *: *(.*)/i

I hope this helps

Jon

Reply to this post
Reply [edit]

Poster: Unstoppable Drew Date: March 11, 2004 04:32:28am
Forum: etree Subject: Re: Format of text file for best import

Awesome. That was exactly what I was looking for. Thanks Jon!

Reply to this post
Reply [edit]

Poster: Administrator, Curator, or Staff greenone Date: March 11, 2004 04:54:20am
Forum: etree Subject: Re: Format of text file for best import

Jon - just looking at the parser info. This is great to know! I couldn't help but notice the "transfered" by - shouldn't it be "transferred", with two R's?

--Dave

Terms of Use (10 Mar 2001)